package JAVA;

import java.util.Random;

public class work3103 {
    public static void main(String[] args) {

        int num=(int)(100*Math.random());
        int max=0;
        int min=0;
        int[] num2=new int[10];
        for (int i=1;i< num2.length;i++){
            if (num2[i]>max){
                max=num2[i];
            }else if (num2[i]<min){
                min=num2[i];
            }
        }
        System.out.println("最大值是："+max);
        System.out.println("最小值是："+min);

    }
}
